import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/index.vue'),
    children: [
      {
        path: '/',
        redirect: '/home'
      },
      {
        path: '/home',
        name: 'home',
        component: () => import('../views/home.vue')
      },
      {
        path: '/Committee',
        name: 'Committee',
        component: () => import('../views/Committee.vue')
      },
      {
        path: '/Keynote',
        name: 'Keynote',
        component: () => import('../views/Keynote.vue')
      },
      {
        path: '/Paper',
        name: 'Paper',
        component: () => import('../views/Paper.vue')
      },
      {
        path: '/Publication',
        name: 'Publication',
        component: () => import('../views/Publication.vue')
      },
      {
        path: '/Submission',
        name: 'Submission',
        component: () => import('../views/Submission.vue')
      },
      {
        path: '/Registration',
        name: 'Registration',
        component: () => import('../views/Registration.vue')
      },
      {
        path: '/Program',
        name: 'Program',
        component: () => import('../views/Program.vue')
      },
      {
        path: '/Journals',
        name: 'Journals',
        component: () => import('../views/Journals.vue')
      },
      {
        path: '/Contact',
        name: 'Contact',
        component: () => import('../views/Contact.vue')
      },
      {
        path: '/Venue',
        name: 'Venue',
        component: () => import('../views/Venue.vue')
      },
      {
        path: '/FQA',
        name: 'FQA',
        component: () => import('../views/FQA.vue')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
